﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Explorer.cs" company="Anton Frattaroli">
//   Copyright (c) Anton Frattaroli. All rights reserved.
// </copyright>
// <summary>
//   Defines the Explorer class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Lidocaine.BusinessLogic
{
    using System.Collections.Generic;
    using Lidocaine.BusinessObjects;

    /// <summary>
    /// Defines the Explorer class.
    /// </summary>
    public static class Explorer
    {
        /// <summary>
        /// Gets the folders, pages and files for this application.
        /// </summary>
        /// <param name="path">The current path to query for pages, files and folders.</param>
        /// <param name="depth">The depth of the current path.</param>
        /// <returns>An array of explorer items.</returns>
        public static List<ExplorerItem> Load(string path, string depth)
        {
            return (List<ExplorerItem>)Data.Explorer.SelectAll(path, depth);
        }
    }
}